import request from '@/utils/request'
import qs from 'qs'

// 删除文件
export function deleteFile(data) {
  return request({
    url: '/ids/pub/file/deleteFile?fileName='+data,
    headers: {
      'Content-Type': 'application/json'
    },
    method: 'post',
    //data: qs.stringify(data)
  })
}


// 上传文件
export function uploadFile(data) {
  return request({
    url: '/ids/pub/file/uploadFile',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    method: 'post',
    data: data
  })
}
